package org.jeecg.modules.bigdatashow.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.bigdatashow.entity.Constitute;
import org.jeecg.modules.bigdatashow.entity.Month;
import org.jeecg.modules.bigdatashow.entity.Statistics;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProfitMapper {

   @Select("select * from y_statistics")
   Statistics find();

   @Select("select value,name from y_constitute where type=#{i}")
    List<Constitute> findByType(int i);

   @Select("select * from y_month")
    List<Month> findAll();
}
